package com.example.myys.data.dao

import androidx.room.Dao
import androidx.room.Query
import com.example.myys.data.entity.DataBean

@Dao
interface DataBeanDao: BaseBeanDao<DataBean> {
    @Query("SELECT * FROM my_shelf WHERE type=:type order by browseTime desc")
    suspend fun getListByType(type:String):List<DataBean>

    @Query("SELECT * FROM my_shelf WHERE type=:type AND name=:name")
    suspend fun getByNameType(name: String, type: String): List<DataBean>
}
